package org.jeecg.modules.sggg.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.sggg.entity.SgTreatmentAssist;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * @Description: 三高协诊
 * @Author: jeecg-boot
 * @Date:   2022-10-26
 * @Version: V1.0
 */
public interface ISgTreatmentAssistService extends IService<SgTreatmentAssist> {

    //待转诊
    IPage<SgTreatmentAssist> queryList(Page<SgTreatmentAssist> page,SgTreatmentAssist sgTreatmentAssist,String orgCode, String userId, String roleCode);

    //待协诊
    IPage<SgTreatmentAssist> queryReceiveList(Page<SgTreatmentAssist> page,SgTreatmentAssist sgTreatmentAssist,String orgCode, String roleCode, String userId);

    //治疗中
    IPage<SgTreatmentAssist> queryTreatmentList(Page<SgTreatmentAssist> page,SgTreatmentAssist sgTreatmentAssist,String orgCode,String roleCode,String userId);

    //上转转诊单
    IPage<SgTreatmentAssist> queryUpReferralList(Page<SgTreatmentAssist> page,SgTreatmentAssist sgTreatmentAssist);

    //下转转诊单
    IPage<SgTreatmentAssist> queryDownReferralList(Page<SgTreatmentAssist> page,SgTreatmentAssist sgTreatmentAssist);

    //获取机构管理员
    List<SysUser> getAdminUser(String orgCode);

    List<Map<String, Object>> yearConsultation(String orgCode,String createTime,String updateTime);

    List<SgTreatmentAssist> selectyByMemberIdList(String member_id,String status);

}
